home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / atexit.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ATEXIT(3)           MINTLIB LIBRARY FUNCTIONS           ATEXIT(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        atexit - register exit cleanup function
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <stdlib.h>
  12.  
  13.        int atexit(void (*)(void));
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        atexit  registers exit cleanup functions to be called when
  17.        the process is terminated using exit. The  functions  sup-
  18.        plied should not need any parameters and should not return
  19.        any values.
  20.  
  21.        Processes terminated by calling _exit will circumvent  any
  22.        registered cleanup functions.
  23.  
  24. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  25.         0  on  success.   -1 on failure; errno is set to indicate
  26.        the error.
  27.  
  28. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  29.        e✓ex✓xi✓it✓t(✓(3✓3)✓),✓, _✓_e✓ex✓xi✓it✓t(✓(3✓3)✓)
  30.  
  31. N✓NO✓OT✓TE✓E
  32.        ANSI requires atexit to be able to register  at  least  32
  33.        functions.   The   mintlibs  allocate  memory  dynamically
  34.        through using malloc; it is hoped this is okay.
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.